package com.oracle.sbdb.testdao;

import static org.junit.Assert.*;

import org.junit.Test;

import com.oracle.sbdb.dao.DepartmentDao;
import com.oracle.sbdb.model.Department;

public class DepartmentDaoTest {

//	@Test
	public void test() {
		Department department = new Department();
		department.setDepartment_description("Oracle Enterprise Unbreakable Linux");
		department.setDepartment_id(1);
		department.setDepartment_name("Oracle Linux");
		
		DepartmentDao dao = new DepartmentDao();
		dao.insert(department);
	}
	@Test
	public void testSelect() {
		DepartmentDao dao = new DepartmentDao();
		Department dep = dao.selectbyId(1);
		System.out.println(dep == null);
		
	}
}
